<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>插值表达式</title>
</head>
<body>
<div id="app">
    <input type="button" value="点我" @click="clickMe"/>
    <br>
    {{flag ? "喜欢我":"还是喜欢我"}}
    <br>
    {{'a b c d e f g'.split(" ")}}

</div>

<script src="./node_modules/vue/dist/vue.js"></script>
<script>
    let vm = new Vue({
        el: "#app",
        data: {
            flag: true
        },
        methods: {
            clickMe: function () {
                this.flag = !this.flag;

            }
        }
    })
</script>
</body>
</html>